import request from '@/utils/request'

export const getQuestionAnswerList = (query) => {
  return request({
    url: '/business/questionAnswer/list',
    method: 'get',
    params: query
  })
}

export const getQuestionAnswerById = (questionAnswerId, query) => {
  return request({
    url: `/business/questionAnswer/${questionAnswerId}`,
    method: 'get',
    params: query
  })
}

export const addQuestionAnswer = (data) => {
  return request({
    url: '/business/questionAnswer',
    method: 'post',
    data: data
  })
}

export const modifyQuestionAnswer = (data) => {
  return request({
    url: '/business/questionAnswer',
    method: 'put',
    data: data
  })
}

export const delQuestionAnswer = (questionAnswerIds) => {
  return request({
    url: `/business/questionAnswer/${questionAnswerIds}`,
    method: 'delete'
  })
}
